-- card: 15647 from stack: in -- bmap block id: 15956 -- flags: 0000 -- background id: 2135 -- name: Diamond -- part 1 (field) -- low flags: 00 -- high flags: 0000 -- rect: left=11 top=60 right=321 bottom=261 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 2 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: -- part 2 (field) -- low flags: 00 -- high flags: 0000 -- rect: left=262 top=60 right=334 bottom=508 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 2 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: -- part contents for background part 1 ----- text ----- 22 -- part contents for card part 1 ----- text ----- procedure MoveTo (h, v: Integer); procedure Move (dh, dv: Integer); procedure ResizeTo (width, height: Integer); procedure Resize (dWidth, dHeight: Integer); procedure Zoom; procedure Drag; procedure Grow; procedure GoAway; procedure Draw; procedure Update; procedure Activate; procedure Deactivate; procedure Select; procedure DoInContent (eRecord: EventRecord); function IsActive: Boolean; end; Example 2: Using the Toolbox routine HideWindow to implement the Hide method. {method to hide a window. } -- part contents for card part 2 ----- text ----- procedure TWindow.Hide; begin HideWindow(wPtr); end; The TWindow object is easily understood because windows are an identifiable element of the Macintosh interface. Other elements are not as visible but make just as useful objects. In this program there are two: the event object, TEvent and the error handler object, TError. Let's look at them. Events are the means whereby the operating system notifies a Macintosh application that some action is required. How that action is handled is up to the application. Some of the events are caused by the user clicking the mouse or pushing a key.